import Main from '@/views/Main.vue'
export default {
  routes: [
    {
      path: '/',
      notShow: true,
      name: 'navigation',
      meta: {
        title: '导航',
      },
      component: () => import('./views/navigation/navigation.vue'),
    },
    {
      path: '/message',
      name: 'message',
      component: Main,
      meta: {
        title: 'VUE的8种通信方法',
      },
      children: [
        {
          path: '/message/props_emit',
          name: '/message/props_emit',
          meta: {
            title: 'props_emit',
          },
          component: () => import('./views/message/props_emit/parent.vue'),
        },
        {
          path: '/message/children_parent',
          name: '/message/children_parent',
          meta: {
            title: 'children_parent',
          },
          component: () => import('./views/message/children_parent/parent.vue'),
        },
        {
          path: '/message/provide_inject',
          name: '/message/provide_inject',
          meta: {
            title: 'provide_inject',
          },
          component: () => import('./views/message/provide_inject/parent.vue'),
        },
        {
          path: '/message/ref_refs',
          name: '/message/ref_refs',
          meta: {
            title: 'ref_refs',
          },
          component: () => import('./views/message/ref_refs/parent.vue'),
        },
        {
          path: '/message/event_bus',
          name: '/message/event_bus',
          meta: {
            title: 'event_bus',
          },
          component: () => import('./views/message/event_bus/parent.vue'),
        },
        {
          path: '/message/vuex',
          name: '/message/vuex',
          meta: {
            title: 'vuex',
          },
          component: () => import('./views/message/vuex/parent.vue'),
        },
        {
          path: '/message/localStorage',
          name: '/message/localStorage',
          meta: {
            title: 'localStorage',
          },
          component: () => import('./views/message/localStorage/parent.vue'),
        },
        {
          path: '/message/attrs_listeners',
          name: '/message/attrs_listeners',
          meta: {
            title: 'attrs_listeners',
          },
          component: () => import('./views/message/attrs_listeners/parent.vue'),
        },
      ],
    },
    {
      path: '/Other',
      name: 'Other',
      component: Main,
      meta: {
        title: '杂七杂八',
      },
      children: [
        {
          path: '/Other/Array',
          name: '/Other/Array',
          meta: {
            title: '极致遍历 —— 数组操作的正确姿势',
          },
          component: () => import('./views/array/demo.vue'),
        },
        {
          path: '/Other/lifeCycle',
          name: '/Other/lifeCycle',
          meta: {
            title: 'VUE的生命周期',
          },
          component: () => import('./views/vueLifeCycle/VueLifeCycle.vue'),
        },
      ]
    }
  ],
}
